Skip to content

fix(workspace): propagate findWorkspace errors and fix list append bug#124

Merged
skevetter merged 1 commit into
mainfrom
fix/findworkspace-error-propagation
Apr 25, 2026
Merged

fix(workspace): propagate findWorkspace errors and fix list append bug#124
skevetter merged 1 commit into
mainfrom
fix/findworkspace-error-propagation

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

  • Error propagation: findWorkspace() now returns errors from List() and SaveWorkspaceConfig() instead of swallowing them and returning nil. This surfaces the real error (e.g. connection timeout) to the user instead of a misleading "workspace not found" message. Callers Get() and findWorkspaceByArgs() propagate the error; Exists() and resolveWorkspace() explicitly discard it since they only need existence checks.
  • List append bug: Fixed list.go:79 appending the entire localWorkspaces slice instead of the single localWorkspace loop variable, which caused duplicate entries in the cleaned workspace list.

findWorkspace() was swallowing List() errors and returning nil, causing
misleading 'workspace not found' messages when the real error was e.g.
a connection timeout. Now returns the actual error to callers.

Also fixes list.go appending the entire localWorkspaces slice instead
of the single localWorkspace loop variable during cleanup filtering.
@netlify

netlify Bot commented Apr 25, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 848cb1e
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/69ed02a0815ae80008bae340

@coderabbitai

coderabbitai Bot commented Apr 25, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@skevetter has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 55 minutes and 0 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 55 minutes and 0 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f0911098-66f0-46d3-a31e-865e36c05579

📥 Commits

Reviewing files that changed from the base of the PR and between d30b09e and 848cb1e.

📒 Files selected for processing (2)
  • pkg/workspace/list.go
  • pkg/workspace/workspace.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@skevetter
skevetter merged commit 81ab5f1 into main Apr 25, 2026
47 checks passed
@skevetter
skevetter deleted the fix/findworkspace-error-propagation branch April 25, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant